<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@include file="/common/jsp/taglibs-nojs-nocss.jsp"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>
<div id="pop_up_content">
	<div class="pop_up_title images_13">
		<s:if test="null==id || ''.equal(id)">
			申请岗位异动
		</s:if>
		<s:else>
			编辑岗位异动
		</s:else>
		
	</div>
	<div class="pop_up_body">
		<form id="editForm" action="stationChangeAction!editData.action">
		<input type="hidden" value="<s:property value='objctForm.id'/>" name="objctForm.id"/>
		<table border="0" cellpadding="0" cellspacing="0" width="450px">
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						姓名
					</div>
				</td>
				<td colspan="2">
					<input style="margin: 0px;" id="Name" readonly="readonly" name="objctForm.name" type="text" class="dialogy_input max_length:15 required" value='<s:property value="objctForm.name"/>'>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>入职时间
					</div>
				</td>
				<td colspan="2">
					<input readonly="readonly" onclick="WdatePicker();" id="AppointmentDate" style="margin: 0px;" name="objctForm.appointmentDate" type="text" class="dialogy_input required" value='<s:property value="objctForm.appointmentDate"/>'>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>拟任职务
					</div>
				</td>
				<td colspan="2">
					<input style="margin: 0px;" id="newOffice" name="objctForm.newOffice" type="text" class="dialogy_input max_length:15 required" value='<s:property value="objctForm.newOffice"/>'>
				</td>
			</tr>
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>异动类型
					</div>
				</td>
				<td colspan="2">
					<select name="objctForm.changeType">
						<s:iterator value="changeTypeList">
							<s:if test="objctForm.changeType==name">
								<option value='<s:property value="id"/>' selected="selected"><s:property value="name"/></option>
							</s:if>
							<s:else>
								<option value='<s:property value="id"/>'><s:property value="name"/></option>
							</s:else>
						</s:iterator>
					</select>
				</td>
			</tr>
			
			<tr>
				<td>
					<div class="form_input_value" style="margin-right: 8px;">
						<span class="red">*</span>本人意见
					</div>
				</td>
				<td colspan="2">
					<input style="margin: 0px;" id="SelfAgree" name="objctForm.selfAgree" type="text" class="dialogy_input max_length:250 required" value='<s:property value="objctForm.selfAgree"/>'>
				</td>
			</tr>
			<tr>
				<td></td>
				<td  class="dialogy_btn_td" >
					<input id="editSubmit" type="button" value="确定" class="btn" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
					<input type="button" value="取消" class="btn" onclick="hideDialog();" onmouseout="this.className='btn'" onmousedown="this.className='btn1'" onmouseover="this.className='btn2'">
				</td>
			</tr>
		</table>
		</form>
	</div>
</div>
<script>

	/* 表单提交 */
	i.formSubmit("editSubmit",	//绑定的按钮id
					  "editForm" ,   //提交的表单id
					  function(result){
						  	var jsonMsgObj=new JsonMsgObj(result);
							var  msg=jsonMsgObj.getMessage();
						    var codeId=jsonMsgObj.getCodeid();
							var isOk=jsonMsgObj.getIsok();
							if( isOk ){
							    aerouiAlert(msg);
								hideDialog();// 隐藏窗口
								loadContentLink('<%=basePath %>stationChangeAction!getListStationChange.action');
							}else{		// 如果编辑失败了
							  JsManageInfoHandleException( result , function(msg , codeId , isOk){
							  		hideDialog();// 隐藏窗口
							   });
						   }
						});

</script>